package com.bite.principle;

import com.bite.autoconfig.*;
import com.bite.principle.model.Dog;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;


//@EnableBiteConfig
//@Import(MyImport.class)
//@Import({BiteConfig.class, BiteConfig2.class})
//@ComponentScan({"com.bite.autoconfig", "com.bite.principle"})
@Import(MyRegistrar.class)
@SpringBootApplication
public class SpringPrincipleApplication {

	public static void main(String[] args) {
		ApplicationContext context = SpringApplication.run(SpringPrincipleApplication.class, args);
		BiteConfig bean = context.getBean(BiteConfig.class);
		bean.use();

//		BiteConfig2 bean2 = context.getBean(BiteConfig2.class);
//		bean2.use();
	}

}
